package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.dto.DishDto;
import com.itheima.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.DishFlavor;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 菜品管理 服务类
 * </p>
 *
 * @author Guoyh
 * @since 2022-08-21
 */
public interface DishService extends IService<Dish> {

    Page selectByPageAndCondition(int page, int pageSize, String name);

    void saveDish(DishDto dishDto);


    DishDto selectById(long id);

    void updateDish(DishDto dishDto);

    void updateStatus(int flag, List<Long> ids);

    void removeWithFlavor(List<Long> ids);
}
